home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #1
/
Amiga Plus CD - 1996 - No. 1.iso
/
pd
/
grafik
/
dust_v2.34
/
dusthelp2
/
if
< prev
next >
Wrap
Text File
|
1995-09-28
|
560b
|
12 lines
COMMAND IF
-----------------------------------------------------------------
Purpose: Simple but usefull if-construct
Usage: IF(<expression>,<command>[,<alternative command>])
Examples: if(1<2,echo(true),echo(false))
if(xmin>t,.xmin=t)
if(a,echo(a isnt 0),echo(a is 0))
Notes: 1. Only simple expressions containing
"<=", ">=", "<", ">", "=" are allowed ("==" is the same as "=")
2. Writing in C you would say:
if(<expression>) <command>; else <alternative command>;